package com.ybkj.daijia.server.gasstation;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 加油订单
 *
 * @author fzh
 */
public class Order {

    public static final int status_waited = 0;// 待处理
    public static final int status_finish = 1;// 已完成
    private static final long serialVersionUID = 1L;
    private Long id;

    private Date created;

    private Date updated;

    private String orderNum;

    private Integer status;// 状态

    private Long gsId;

    private String gsName;// 油站名

    private String gsServiceNo;// 服务号

    private String gasNum;//油号

    private String compressorGun;//加油枪

    private Long passengerId;

    private String passengerName;

    private String passengerPhone;

    private BigDecimal money;// 加油金额

    private BigDecimal realMoney;// 实收金额

    private BigDecimal discountMoney;// 平台优惠

    private PayType payType;// 支付方式

    private String memo;// 备注

    private Long couponId;//优惠券id

    private Long companyId;//所属公司id

    private String companyName;//所属公司名称


    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getUpdated() {
        return updated;
    }

    public void setUpdated(Date updated) {
        this.updated = updated;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getGsId() {
        return gsId;
    }

    public void setGsId(Long gsId) {
        this.gsId = gsId;
    }

    public String getGsName() {
        return gsName;
    }

    public void setGsName(String gsName) {
        this.gsName = gsName;
    }

    public String getGsServiceNo() {
        return gsServiceNo;
    }

    public void setGsServiceNo(String gsServiceNo) {
        this.gsServiceNo = gsServiceNo;
    }

    public Long getPassengerId() {
        return passengerId;
    }

    public void setPassengerId(Long passengerId) {
        this.passengerId = passengerId;
    }

    public String getPassengerName() {
        return passengerName;
    }

    public void setPassengerName(String passengerName) {
        this.passengerName = passengerName;
    }

    public String getPassengerPhone() {
        return passengerPhone;
    }

    public void setPassengerPhone(String passengerPhone) {
        this.passengerPhone = passengerPhone;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public BigDecimal getRealMoney() {
        return realMoney;
    }

    public void setRealMoney(BigDecimal realMoney) {
        this.realMoney = realMoney;
    }

    public BigDecimal getDiscountMoney() {
        return discountMoney;
    }

    public void setDiscountMoney(BigDecimal discountMoney) {
        this.discountMoney = discountMoney;
    }

    public PayType getPayType() {
        return payType;
    }

    public void setPayType(PayType payType) {
        this.payType = payType;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }


    public String getGasNum() {
        return gasNum;
    }

    public void setGasNum(String gasNum) {
        this.gasNum = gasNum;
    }

    public String getCompressorGun() {
        return compressorGun;
    }

    public void setCompressorGun(String compressorGun) {
        this.compressorGun = compressorGun;
    }

    public Long getCouponId() {
        return couponId;
    }

    public void setCouponId(Long couponId) {
        this.couponId = couponId;
    }

    public enum PayType {
        /**
         * 余额
         */
        balance,
        /**
         * 支付宝
         */
        alipay,
        /**
         * 微信
         */
        weixin,
        /**
         * 银联支付
         */
        unionpay,
        /**
         * 翼支付
         */
        bestpay
    }

}
